<template>
  <div class="Navbartop">
    <slot name="left"></slot>
    <slot name="center"></slot>
    <slot name="right"></slot>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.Navbartop {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: white;
  height: 50px;
  align-items: center;

  .NavbarTop-left {
    height: 40px;
  }
  .NavbarTop-center {
    flex: 1;
    margin: 0 5px;
    .ipt {
      background-color: rgb(231, 231, 231);
      height: 25px;
      border-radius: 5px;
      position: relative;
      padding-left: 25px;
      line-height: 25px;
      .van-icon {
        position: absolute;
        left: 5px;
        top: 50%;
        color: gray;
        transform: translate(0, -50%);
      }
      span {
        color: gray;
        font-size: 12px;
      }
    }
  }
  .NavbarTop-right {
    height: 100%;
    align-items: center;
    display: flex;
    img {
      height: 25px;
      border-radius: 12.5px;
    }
    .van-button {
      height: 30px;
      margin: 0 5px;
    }
  }
}
</style>